import java.util.Arrays;
import java.util.Scanner;
class DOG{
    public int size;
    public String breed;
    public String name;
    public void bark(){
        System.out.println("*****");
    }
}
class Book{
    int id;
    String name;
    Double price;
    int prices;
    public void show(){
    }
}
public class test5 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        String []student=new String[5];
        for (int i = 0; i <5 ; i++) {
            student[i]=sc.next();
        }
        System.out.println(Arrays.toString(student));
    }
    public static boolean jishu(int []num){
        int a=0;int i=0;
       while (i<num.length-1){
            if(num[i]%2!=0){
                a++;
                if(a==3)
                {
                    break;
                }
            }
            else a=0;
            i++;
        }
        if(a==3)
            return true;
        else return false;
    }
    public static void main18(String[] args) {
        int []num=new int[5];
        Scanner sc=new Scanner(System.in);
        for (int i = 0; i <num.length ; i++) {
            num[i]=sc.nextInt();
        }
        System.out.println(jishu(num));
    }
    public static int doyu(int[]num){
        Arrays.sort(num);
        return num[num.length/2];
    }
    public static void main17(String[] args) {
        int []num=new int[5];
        Scanner sc=new Scanner(System.in);
        for (int i = 0; i <num.length ; i++) {
            num[i]=sc.nextInt();
        }
        int temp=doyu(num);
        System.out.println(temp);
    }
    public static int notpatner(int[]arr){
        int temp=0;
        for (int i = 0; i <arr.length ; i++) {
          temp^=arr[i];
        }
        return temp;
    }
    public static void main16(String[] args) {
        int []num=new int[5];
        Scanner sc=new Scanner(System.in);
        for (int i = 0; i <num.length ; i++) {
             num[i]=sc.nextInt();
        }
        int temp=notpatner(num);
        System.out.println(temp);

    }
    public static String quest(int []arr, int target){
       int []arr1={-1,-1};
          int a=0;
        int b=arr.length-1;
            for(int j=a+1;j<b;j++)
            {
                if(arr[a]+arr[j]==target){
                   arr1[0]=a;
                   arr1[1]=j;
                }
                a++;
            }
        return Arrays.toString(arr1);
    }
    public static void main15(String[] args) {
        int []nums={2,7,11,15};
        int target=9;
        System.out.println(quest(nums,target));
    }
    public static void trans(int []arr){
        int a=0;
        int b=arr.length-1;
        while(a<b)
        {
            if(a%2!=0&&b%2==0){
                int temp=arr[a];
                arr[a]=arr[b];
                arr[b]=temp;
            }
            a++;
            b--;
        }
    }
    public static void main14(String[] args) {
        int[]arr={1,2,3,4,5,6};
        trans(arr);
        System.out.println(Arrays.toString(arr));
    }
    public static void transform(int arr[]){
        for(int i=0;i<arr.length;i++){
            arr[i]*=2;
        }
    }
    public static void main13(String[] args) {
       int []arr={1,2,3};
       transform(arr);
       System.out.println(Arrays.toString(arr));
    }

    public static void main12(String[] args) {
        Scanner scanner=new Scanner(System.in);
        double a=scanner.nextDouble();
        double b=scanner.nextDouble();
        double c=scanner.nextDouble();
        double delta=b*b-4*a*c;
        if(delta>0){
            System.out.println("x1="+String.format("%.2f",(-b + Math.sqrt(delta)) / (2.0*a))+" "+"x2="+String.format("%.2f",(-b - Math.sqrt(delta)) / (2.0*a)));
        }
        else if(delta==0){
            System.out.println("x1=x2="+String.format("%.2f",(-b + Math.sqrt(delta)) / (2.0*a)));

        }
        else {
            System.out.println("次方程无解");
        }
    }
    public static void main11(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a=scanner.nextInt();
        int b=scanner.nextInt();
        int c=scanner.nextInt();
        for(int i=a;i<=b;i++){
            if(i%c==0)
            {
                System.out.println(i);
            }
        }
    }
    public static void main10(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        System.out.println(a + "到" + b + "之间的素数有：");
        for (int i = a; i <= b; i++) {
            if (is(i)) {
                System.out.print(i + " ");
            }
        }
    }
    public static boolean is(int num) {
        if (num <= 1) {
            return false;
        }
        for (int i = 2; i <= Math.sqrt(num); i++) {
            if (num % i == 0) {
                return false;
            }
        }
        return true;
    }

    public static int s(int x){
        int t=0;
        for(int i=2;i<=Math.sqrt(i);i++){
            if(x%i==0){
                t=1;
            }
        }
        if(t==0){return x;}
        else return 0;
    }
    public static void main9(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a=scan.nextInt();
        int b=scan.nextInt();
        System.out.println("1到25之间的素数有：");
        while (scan.hasNext()){
            for(int i=a;i<=b;i++){
                if(i==s(i)){
                    System.out.print(+i+" ");
                }
            }
        }
    }
    public static int temp(int a,int b){
        return a > b ? a : b;
    }
    public static double temp(double c,double d,double f){
        return (c>d?c:d)>f? (c>d?c:d):f;
    }
    public static void main8(String[] args) {
      Scanner sc=new Scanner(System.in);
      int a=sc.nextInt();
      int b=sc.nextInt();
      int t=temp(a,b);
      System.out.println(t);
        double c= sc.nextDouble();
        double d= sc.nextDouble();
        double f=sc.nextDouble();
        double g=temp(c,d,f);
      System.out.println(g);

    }
    public static int add(int a, int b) {
        return a+b;
    }
    public static double add(double a,double b,double c) {
          return a+b+c;
    }
    public static void main7(String[] args) {
        int a=1;
        int b=2;
        double c=3.6;
        double g=4.0;
        double f=4.5;
        int d=add(a,b);
        double v=add(a,b,c);
        System.out.println(v);
        System.out.println(d);

    }
    public static int ss(int x){
        int t=0;
        for(int i=2;i<x;i++){
            if(x%i==0){
                t=1;
            }
        }
        if(t==0){return x;}
        else return 0;
    }
    public static void main6(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a=scan.nextInt();
        int b=scan.nextInt();
        System.out.println("1到25之间的素数有：");
         while (scan.hasNext()){
             for(int i=a;i<=b;i++){
               if(i==ss(i)){
                   System.out.print(+i+" ");
               }
             }
         }

    }
    public static int sxh(int k,int z){
        int a=k/100;
        int b=k/10%10;
        int c=k%10;
        z=a*a*a+b*b*b+c*c*c;
        return z;
    }
    public static void main5(String[] args) {  //判断两个数之间的水仙花数
        Scanner scanner = new Scanner(System.in);
        //获取起始范围
        int z=0;
        int temp=0;
        int i = scanner.nextInt();
        //获取终止范围
        int j = scanner.nextInt();
        // ---------------------Begin------------------------

        for(int k=i;k<=j;k++)
        {
            if(k==sxh(k,z))
            {
                System.out.println(k);
                temp=1;
            }
        }
        if(temp==0) System.out.print(+i+"~"+j+"范围内无水仙花数！");
    }


    public static void main4(String[] args) {


        int i, j, k, n;
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        for (i = 1; i <= n; i++) {
            for (j = 1+1; j <= i; j++) {
                System.out.print(" ");
            }
            for (k =2*n-1; k>=2*i-1;k--) {
                System.out.print("*");
            }
            System.out.print("\n");
        }
    }
        public static void main3(String[] args) {
            DOG MYDOG=new DOG();
            MYDOG.size=18;
            MYDOG.name="liuxin";
            MYDOG.breed="lini";
            MYDOG.bark();
            System.out.println(MYDOG.breed);
        }

    public static void  main2(String[] args) {
        int a=0;
        int b=1;
        int n=0;
            Scanner sc = new Scanner(System.in);
            int sum = sc.nextInt();
            for (int i = 0; i < sum; i++) {
                n = a + b;
                b = a;
                a = n;
            }
            System.out.println("第"+sum+"个斐波那契数列为：" + n);
        }

    public static void main1(String[] args) {
        int i, j, k, n;
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入金字塔层数：");
        n = sc.nextInt();
        //外层循环控制层数
        for (i = 1; i <= n; i++) {
            //根据外层行号，输出星号左边的空格
            for (j = 1; j <= n - i; j++) {
                System.out.printf(" ");
            }
            //根据外层行号，输出星号个数
            for (k = 1; k <= 2 * i - 1; k++) {
                System.out.print("*");
            }
            //一行结束，换行
            System.out.print("\n");
        }
    }
}


